<!DOCTYPE html>
<html lang='en'>

<head>
  <meta charset='UTF-8'>
  <meta http-equiv='X-UA-Compatible' content='IE=edge'>
  <meta name='viewport' content='width=device-width, initial-scale=1.0'>
  <title>自助领取处</title>
  <style>
    #box {
      background: #efc1a2b3;
      width: 100%;
      max-width: 682px;
      box-sizing: border-box;
      margin: 0 auto;
      padding: 10px;
      padding-bottom: 63px;
    }

    #tq {
      display: flex;
      flex-direction: column;
      width: auto;
      max-width: 345px;
      flex-wrap: nowrap;
      margin: 0 auto;
    }

    input {
      height: 2.25em;
      padding: 0 2.25em;
      margin: auto;
      border-radius: 1.25em;
      font-size: .875em;
      background-size: 100%;
      background-repeat: no-repeat;
      background-color: rgba(246, 246, 249, .1);
      background-size: 1em 1em;
      background-position: .875em .625em;
      color: #c1c8d2;
      width: 100%;
      max-width: 25em;
      background-color: #f6f7f9;
      background-image: url(https://www.book123.info/web_images/icon_search.png);
      box-sizing: border-box;
      color: #000;
    }
  </style>
</head>

<body style="background: #d3e9d49c;">
  <div id="box">
    <h3 style="text-align: center; color: #0c9b6b;">自助领取处</h3>
    <p style="text-align: center;">说明：本页面为自动提取，需要‘自定义商品号’来作为提取依据</p>
    <div id="tq">
      <input type="text" id="phone" placeholder="请输入自定义商品号"><br>
      <button type="button" id="send" style="border: none; height: 2.25em; border-radius: 14px;">提取</button>
    </div>
  </div>

  <script>
    var phone = document.getElementById('phone')
    var send = document.getElementById('send')
    send.addEventListener('click', () => {
      if (phone.value == '87392') {
        window.location = '/url.html '
      } else {
        alert("请输入正确的自定义商品号~~")
      }
    })

  </script>


</body>

</html>